<?php
include "includes/ui.php";

echo headerHTML("master","Leave Management");
?> 
<!-- Live Stats -->
<div class="row-fluid">

    <!-- Pie: Box -->
    <div class="span12">

        <!--  : Top Bar -->
        <div class="top-bar">
            <h3><i class="icon-cog"></i> หน้าขอซื้อพัสดุ</h3>
			<?php
							if ($_GET['admin']!=1){
						?>
            <div class='tmp' style='float:right'>
                <a href="request_order_detail.php"><button class="btn btn-info" rel="tooltip" title=""   data-original-title="สร้างรายการ"  tooltip="Add">เพิ่ม</button></a>
            </div>
			<?php }?>
        </div>
        <!-- /  : Top Bar -->

        <!-- Pie: Content -->
        <div class="well no-padding" style="height:600px;">
			<div class="span12">
				<div class="row-fluid">
					<div class='span12'>
					<div class="control-group" style='border-bottom:0px;padding-bottom:5px;'>
								<label class="control-label" style='padding-top:5px;' for="inputName"><i class="icon-double-angle-right"></i>เลขที่คำขอซื้อ</label>
								<div class="controls">
									&nbsp;&nbsp;&nbsp;<input type="text" id="txtReqNo" placeholder="หมายเลขขอซื้อ">
									
								</div>
					 </div>
					 <?php
							if ($_GET['admin']==1){
						?>
					 <div class="control-group" style="border-bottom:0px;padding-bottom:0px;">
								<label class="control-label" style='padding-top:5px;' for="inputName"><i class="icon-double-angle-right"></i>ชื่อ-นามสกุล </label>
								<div class="controls">
									&nbsp;&nbsp;&nbsp;<input type="text" id="inputName" placeholder="ชื่อ-นามสกุล บุคลากร">
								</div>
					 </div>
					 <?php }?>
					<div class="control-group" style="border-bottom:0px;padding-bottom:10px;">
						<label class="control-label" style='padding-top:5px;'><i class="icon-double-angle-right"></i>สถานะ</label>
						<div class="controls">
							 
							&nbsp;&nbsp;&nbsp;<select class="no-margin span8" tabindex="2" style="display: none;width:180px !important;">
									<option value="Category 1" selected>แสดงทั้งหมด</option>
									<option value="Category 1" >รอการอนุมัติ</option>
									<option value="Category 2" >อนุมัติ</option>
									<option value="Category 2" >ไม่อนุมัติ</option>
									<option value="Category 2" >ขอซื้อ</option>
							</select>
							 
						</div>
						
					</div>
					<div class="control-group" style="padding-bottom:10px;">
						<label class="control-label" style='padding-top:5px;'><i class="icon-double-angle-right"></i>วันที่ขอซื้อ</label>
						<div class="controls">
							&nbsp;&nbsp;&nbsp;<input type="text" class="span2" placeholder="วันที่เริ่มต้น">&nbsp;<input type="text" class="span2" placeholder="วันที่สิ้นสุด">
							 
							 <button class="btn btn-inverse" style='margin-left:50px;margin-top:0px;padding-top:0px;' rel="tooltip" title=""   data-original-title="ค้นหาข้อมูล"><i class="icon-search"></i></button> 
							 
						</div>
						
					</div>
					</div>
					 
				</div>
			</div>
            <table class="table" >
                <thead style='border-top:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;'> 
                    <tr >
                        <th style='color:#333 !important;width:20px;'>#</th>
						<th style='color:#333 !important;width:100px;' class='center'>วันที่</th>
                        <th style='color:#333 !important;' class='center'>เลขที่คำขอซื้อ</th>
						<?php
							if ($_GET['admin']==1){
						?>
						 <th style='color:#333 !important;' class='left'>ชื่อ-นามสกุล</th>
						<?php }?>
						<th style='color:#333 !important;width:150px;' class="center">สถานะ </th>
						<th style='color:#333 !important;width:180px;' class="center">จำนวนรายการ</th>
                        <th style='color:#333 !important;width:80px;' class="center">ยืนยัน </th>
						<th style='color:#333 !important;width:80px;' class="center">ลบ </th>
                    </tr>
                </thead>
                <tbody>
                    <tr class="odd gradeX">
                        <td>1</td>
						<td  class='center'>12/12/2556</td>
						<td  class='center'>RO560033</td>
						<?php
							if ($_GET['admin']==1){
						?>
						<td class='left'>นาย. มานะ ตั้งใจ</td>
						<?php }?>
						<td class='center'><span class="label label-inverse">รอการอนุมัติ</span></td>
						<td class='center'> 10</td>
                       <td class='center'	>
					   <?php
							if ($_GET['admin']==1){
						?>
						 <img src="img/confirm.gif" style="cursor:pointer;"/>
						 <?php }else{?>
						  <img src="img/view.png" style="cursor:pointer;"/>
						 <?php }?>
						</td>
						<td class='center'>
						 
						
						</td>
                    </tr>
                    <tr class="even gradeC">
                         <td>2</td>
						<td  class='center'>12/12/2556</td>
						<td  class='center'>RO560001</td>
						<?php
							if ($_GET['admin']==1){
						?>
						<td class='left'>นาย. มานะ ตั้งใจ</td>
						<?php }?>
						<td class='center'><span class="label label-success">อนุมัติ</span></td>
						<td class='center'> 10</td>
                       <td class='center'	>
						 <img src="img/view.png" style="cursor:pointer;"/>
						</td>
						<td class='center'>
						 
						</td>
                    </tr>
					<?php
							if ($_GET['admin']!=1){
					 ?>
                    <tr class="odd gradeX">
                         <td>3</td>
						<td  class='center'>12/12/2556</td>
						<td  class='center'>RO560021</td>
						<?php
							if ($_GET['admin']==1){
						?>
						<td class='left'>นาย. มานะ ตั้งใจ</td>
						<?php }?>
						<td class='center'><span class="label label-warning">ขอซื้อ</span></td>
						<td class='center'> 10</td>
                       <td class='center'	>
						<img src="img/check_product.png"/>
						</td>
						<td class='center'>
						 <img src="img/delete-file.png"/>
						</td>
                    </tr>
                     <tr class="even gradeC">
                          <td>4</td>
						<td  class='center'>12/12/2556</td>
						<td  class='center'>RO560001</td>
						<?php
							if ($_GET['admin']==1){
						?>
						<td class='left'>นาย. มานะ ตั้งใจ</td>
						<?php }?>
						<td class='center'><span class="label label-warning">ขอซื้อ</span></td>
						<td class='center'> 10</td>
                       <td class='center'	>
						<img src="img/check_product.png"/>
						</td>
						<td class='center'>
						 <img src="img/delete-file.png"/>
						</td>
                    </tr>
					<?php }?>
                    <tr class="odd gradeX">
                            <td>5</td>
						<td  class='center'>12/12/2556</td>
						<td  class='center'>RO560001</td>
						<?php
							if ($_GET['admin']==1){
						?>
						<td class='left'>นาย. มานะ ตั้งใจ</td>
						<?php }?>
						<td class='center'><span class="label">ไม่อนุมัติ</span></td>
						<td class='center'> 10</td>
                       <td class='center'	>
						<img src="img/view.png"/>
						</td>
						<td class='center'>
						<?php
							if ($_GET['admin']!=1){
						?>
						 <img src="img/delete-file.png"/>
						 <?php }?>
						</td>
                    </tr>
                </tbody>

            </table>

        </div>
        <!-- / Pie: Content -->

    </div>
    <!-- / Pie -->

</div>
<!-- / Live Stats -->

<?php
echo footerHTML();
?>

<!-- Javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src='js/jquery.hotkeys.js'></script>
<!--script src='js/fullcalendar.min.js'></script-->
<script src="js/jquery-ui-1.10.2.custom.min.js"></script>
<script src="js/jquery.pajinate.js"></script>
<!--script src="js/jquery.prism.min.js"></script-->
<script src="js/jquery.dataTables.min.js"></script>

<script src="js/jquery.flot.resize.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-wysiwyg.js"></script>
<!--script src="js/bootstrap-typeahead.js"></script-->
<script src="js/jquery.easing.min.js"></script>
<script src="js/jquery.chosen.min.js"></script>
<script src="js/avocado-custom.js"></script>


</html>